ident = '$Id: keywords.py 109 2006-06-05 18:46:37Z trevor $'

# KEY WORDS
kw_tags ='''a abbr acronym address applet area b base basefont
bdo big blockquote body br button caption center
cite code col colgroup dd del dfn dir div dl dt em
fieldset font form frame frameset h1 h2 h3 h4 h5 h6
head hr html i iframe img input ins isindex kbd label
legend li link map menu meta noframes noscript
object ol optgroup option p param pre q s samp
script select small span strike strong style sub sup
table tbody td textarea tfoot th thead title tr tt u ul
var xml xmlns'''

kw_attribs ='''abbr accept-charset accept accesskey action align alink
alt archive axis background bgcolor border
cellpadding cellspacing char charoff charset checked cite
class classid clear codebase codetype color cols colspan
compact content coords
data datafld dataformatas datapagesize datasrc datetime
declare defer dir disabled enctype event
face for frame frameborder
headers height href hreflang hspace http-equiv
id ismap label lang language leftmargin link longdesc
marginwidth marginheight maxlength media method multiple
name nohref noresize noshade nowrap
object onblur onchange onclick ondblclick onfocus
onkeydown onkeypress onkeyup onload onmousedown
onmousemove onmouseover onmouseout onmouseup
onreset onselect onsubmit onunload
profile prompt readonly rel rev rows rowspan rules
scheme scope selected shape size span src standby start style
summary tabindex target text title topmargin type usemap
valign value valuetype version vlink vspace width
text password checkbox radio submit reset
file hidden image'''


kw_css ='''background background-attachment background-color background-image
background-position background-repeat
border-color border-bottom border-bottom-width border-left border-left-width
border border-right-width border-right border-style border-top border-top-width border-width
clear clip color cursor display float
font font-family font-size font-style font-variant font-weight
height left letter-spacing line-height
list-style list-style-image list-style-position list-style-type
margin margin-bottom margin-left margin-right margin-top overflow
padding padding-bottom padding-left padding-right padding-top position
text-align text-decoration text-indent text-transform top
vertical-align visibility width white-space word-spacing z-index'''

# Clean up any LF
kw_tags = kw_tags.replace("\n", "")
kw_attribs = kw_attribs.replace("\n", "")
kw_css = kw_css.replace("\n", "")

# Make lists out of the above
kw_tag_list = kw_tags.split(" ")
kw_attrib_list = kw_attribs.split(" ")
kw_css_list = kw_css.split(" ")

# Sort the lists
kw_tag_list.sort()
kw_attrib_list.sort()
kw_css_list.sort()

# Add < to the tags
#~ new_list = []
#~ for kw in kw_tag_list:
	#~ new_list.append( "<%s" % kw )
#~ kw_tag_list = new_list

def get_tags():
	return kw_tag_list

def get_attribs():
	return kw_attrib_list

def get_css():
	return kw_css_list

def get_all():
	return kw_tag_list + kw_attrib_list + kw_css_list

# Create one big long string
kw_all_string = " ".join( get_all() )
